@import '../../sass/src/frame';
@import '../../sass/var/common';
@import '../../sass/var/frame';

section {
    display: block;
}

.wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 139px;
    bottom: 28px;
    padding: 0 20px;
}

.wrapper .condition-block {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.group-block {
    width: 273px;
    float: left;
}

.condition-block .headline {
    padding: 10px 0 0;
    line-height: 1em;
    text-align: center;
    margin-bottom: 14px;
}

.condition-block .condition-entity {
    position: absolute;
    left: 0;
    top: 41px;
    bottom: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.condition-block .headline .text {
    display: inline-block;
    padding: 0 10px;
    position: relative;
    background: #fafafa;
    top: -8px;
}

.condition-block .headline:before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #666;
    margin-top: 6px;
}

.bold-text {
    font-weight: 700;
}

.lead-info {
    width: 120px;
    margin: 140px auto 0;
    text-align: center;
}

.lead-info .lead-info-icon {
    display: block;
    width: 77px;
    height: 53px;
    margin: 0 auto 15px;
    background: url(../../../assets/styles/images/lead_arrow.png) no-repeat;
}

.lead-info .text {
    font-weight: 700;
}

.thumbnail-content {
    width: 100%;
    margin-right: -20px;
    padding-left: 40px;
}

.thumbnail-content .thumbnail-item-wrapper {
    margin-right: -20px;
}

.thumbnail-content .thumbnail-item {
    display: inline-block;
    margin: 0 20px 20px 0;
}

.thumbnail-content .thumbnail-wrapper {
    width: 200px;
    display: inline-block;
}

.text-link.secondary {
    text-decoration: none;
}

.thumbnail-content .thumbnail-item .thumbnail-img-wrapper {
    width: 100%;
    height: 286px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.thumbnail-content .thumbnail-item .describe-wrapper {
    margin-top: 10px;
    line-height: 1.2em;
}

.thumbnail-content .thumbnail-item .describe-wrapper div {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumbnail-content .thumbnail-item .thumbnail-img-wrapper img {
    width: 100%;
    height: 100%;
}

.thumbnail-block {
    padding-left: 40px;
}

.text-link {
    color: #333;
}

.legend-parts-block {
	.btn-change {
		position: absolute;
		top: 14px;
		right: 14px;
		z-index: 100003;
	}
	.lengend-btn {
		position: absolute;
		top: 50%;
		margin: -16px 0 0 0;
		background: $bg-color;
		&.left {
			left: 5px;
			&.expand {
				.icon-right {
					display: none;
				}
				.icon-left {
					display: block;
				}
			}
			&.collapse {
				.icon-left {
					display: none;
				}
				.icon-right {
					display: block;
				}
			}
		}
		&.right {
			right: 5px;
			&.expand {
				.icon-left {
					display: none;
				}
				.icon-right {
					display: block;
				}
			}
			&.collapse {
				.icon-left {
					display: block;
				}
				.icon-right {
					display: none;
				}
			}
		}
		.iconfont {
			font-size: 30px;
			vertical-align: middle;
		}
	}
}

.lengend-btn {
	color: $lengend-btn-color;
}

.legend-block {
	padding: 0 40px;
	.condition-entity {
		bottom: 30px;
		padding: 0 20px;
		margin-right: 20px;
		margin-left: 20px;
		&:before , &:after {
			content: '';
			display: block;
			width: 0;
			height: 100%;
			border-left: $common-dotted-border;
			position: absolute;
			top: 0;
			bottom: 0;
		}
		&:before {
			left: 0;
		}
		&:after {
			right: 0;
		}
		.svg-wrapper {
			height: 100%;
			border: $common-solid-border;
			background: #ffffff;
		}
	}
}

.parts-block {
	width: 55%;
	float: right;
	.condition-entity {
		bottom: 30px;
	}
	.parts-table-wrapper {
		min-height: 100%;
		position: relative;
		border-style: $coomon-datted-style;
		border-width: 0 0 $common-border-width 0;
		border-color: $dotted-line-color;
		overflow: hidden;
		&.lock {
			overflow: hidden;
			
			.parts-table-tbody {
				border-right: $common-dotted-border;
				overflow: hidden;
			}
			.parts-scroll-tbody {
				position: absolute;
				left: 0;
				right: -17px;
				top: 0;
				bottom: 0;
				overflow: scroll;
			}
			table {
				width: 100%;
			}
		}
		&.float {
			width: 35%;
			height: 100%;
			float: right;
			.parts-table-thead {
				width: 100%;
				overflow: hidden;

			}
			.float-table-head {
				width: 100%;
			}
			.parts-table-tbody {
				overflow: auto;
				.float-table-body {
					width: 100%;
				}
			}
			.column {
				width: 150px;
				word-break: break-all;
				vertical-align: top;
				
			}
		}
		.parts-table-thead {
			@include setHeightGroup(30px);
			border-bottom: $common-dotted-border;
		}
		.parts-item {
			font-size: 0;

			.column {
				display: inline-block;
				font-size: $main-font-size;
				vertical-align: top;
				line-height: 1.2em;
				text-align: center;
				.icon-btn-two {
					margin: 0;
				}
				&.text-column {
					display: inline-block;
					padding: 0 10px;
					text-align: left;
					height: 58px;
					overflow: hidden;
				}
			}
			.ordernumber {
				width: 10%;
			}
			.operate {
				width: 20%;
			}
			.number {
				width: 30%;
				.part-number {
					line-height: 1em;
					margin-bottom: 10px;
				}
			}
			.describe {
				width: 25%;
			}
			.quantity {
				width: 15%;
			}
		}
		.parts-table-tbody {
			position: absolute;
			width: 100%;
			top: 30px;
			bottom: 0;
			.parts-item {
				border-bottom: $common-dotted-border;
			}
			.quantity {
				text-align: left;
			}
		}
	}
	&.two {
		.parts-table-wrapper {
			&.lock {
				overflow: auto;
				.parts-table-tbody {
					overflow: auto;
					border-right: none;
				}
			}
			&.float {
				display: none;
			}
		}
	}
}
.parts-table-tbody {
	.parts-item {
		height: $parts-item-height;
		padding-top: $parts-item-padding-top;
		.quantity {
			padding-left: 7%;
			text-align: left;
		}
		.icon-btn-wrapper {
			text-align: left;
		}
		.column.number {
			text-align: left;
			padding-left: 15px;
			.text-link {
				margin-right: 5px;
				font-size: $main-font-size;
			}
		}
		.ordernumber {
			padding-top: 10px;
		}
		.operate {
			padding-top: 5px;
		}
		&.active {
			background: $parts-item-activebg;
		}
		&.hover {
			background: $parts-item-hoverbg;
		}
	}
}


.icon-btn-two {
	display: inline-block;
	*zoom: 1;
	width: 24px;
	height: 24px;
	line-height: 22px;
	font-size: 0;
	text-decoration: none;
	text-align: center;
	border: 1px solid #353751;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #ffffff;
	background-color: #353751;
	margin: 0 0 0 10px;
  }

.vin-icon {
	color: #18db57;
}

